/*FILE UPDATE INFO**************************************************************
 * Author   : PURESUN
 * Update   : 2024-03-27
 * Info     : public definition in the project
 * Version  : 1.0.0
 ******************************************************************************/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __PUBDEF_H__
#define __PUBDEF_H__

/* Includes ------------------------------------------------------------------*/
#include "puresun_type.h"

/* Exported macro ------------------------------------------------------------*/

/* Exported typedef ----------------------------------------------------------*/
typedef enum cmd_id
{
    // command for coating controller
    CMD_ID_SET_CURRENT = 0x20,
    CMD_ID_SET_CURRENT_FACTOR = 0x21,
    CMD_ID_ZERO_CURRENT_OFFSET = 0x22,
    CMD_ID_GET_SYS_VOLTAGE = 0x23,

    CMD_ID_GET_SYS_TIME = 0x26,
    CMD_ID_GET_SYS_STATUS = 0x27,
    CMD_ID_GET_SYS_FAN = 0x28,
    CMD_ID_GET_CURRENT = 0x29,
    CMD_ID_GET_CURRENT_FACTOR = 0x2A,
    CMD_ID_GET_CURRENT_OFFSET = 0x2B,
    CMD_ID_GET_CURRENT_LIMIT = 0x2C,
    CMD_ID_GET_CURRENT_SET = 0x2D,
    CMD_ID_GET_TEMP_A = 0x2E,
    CMD_ID_GET_TEMP_B = 0x2F,

    // command for pump controller
    CMD_ID_SET_RLY = 0x53,
    CMD_ID_GET_RLY = 0x54,
} cmd_id_t;

typedef enum
{
    DEV_UNKNOWN = 0xEE,
    DEV_PUMP_CONTROLLER = 0x17,
    DEV_COATING_CONTROLLER = 0x19,
} device_type_t;

/* Exported types ------------------------------------------------------------*/

/* Exported constants --------------------------------------------------------*/

/* Exported variables --------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/

#endif /* __VAACUM_H__ */

/************************ (C) COPYRIGHT PURESUN *****END OF FILE***************/
